package com.woniuxy.credit_loans.accounting_shi.service.impl;

import com.woniuxy.credit_loans.accounting_shi.service.BankService;
import com.woniuxy.credit_loans.entity.BankTable;
import com.woniuxy.credit_loans.mapper.BankTableMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BankServiceImpl implements BankService {
    @Resource
    private BankTableMapper bankTableMapper;

    @Override
    public BankTable selectByBankName(String bankName) {
        return bankTableMapper.selectByBankName(bankName);
    }

    @Override
    public List<BankTable> selectAll() {
        return bankTableMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return bankTableMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BankTable record) {
        return 0;
    }

    @Override
    public int insertSelective(BankTable record) {
        return bankTableMapper.insertSelective(record);
    }

    @Override
    public BankTable selectByPrimaryKey(int id) {
        return bankTableMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BankTable record) {
        return bankTableMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BankTable record) {
        return 0;
    }
}
